/*
 *
 * 名称：九星
 * 功能：奇门遁甲九星属性配置
 * 作者：清河张
 * 时间：2025.05.11
 *
 */

#include "qmxing9.h"
#include <cstdio>

using namespace QMDJ;

template<> XING_T XING9::_objs[9] =
{
    { XING_T::PPENG, WUXING_T::SHUI, "白", "蓬",},
    { XING_T::RENNN, WUXING_T::TUUU, "白", "任",},
    { XING_T::CHONG, WUXING_T::MUUU, "碧", "冲",},
    { XING_T::FUUUU, WUXING_T::MUUU, "绿", "辅",},
    { XING_T::YYING, WUXING_T::HUOO, "紫", "英",},
    { XING_T::RUIII, WUXING_T::TUUU, "黑", "芮",},
    { XING_T::ZHUUU, WUXING_T::JINN, "赤", "柱",},
    { XING_T::XINNN, WUXING_T::JINN, "白", "心",},
    { XING_T::QINNN, WUXING_T::TUUU, "黄", "禽",},
};

XING_T::XING_T():
    CT(X____, ""), _wx(WUXING_T::WX__), _wxxqfw(-1), _wxxqfg(-1), _clr("")
{

}


XING_T::XING_T(int id, int wx, const char* clr, const char* name):
    CT(id, name), _wx(wx), _wxxqfw(-1), _wxxqfg(-1), _clr(clr)
{

}

WUXING5 XING_T::wx5() const
{
    return _wx;
}

void XING_T::gyu(WUXING5 wx)
{
    _wxxqfg = wx - wx5();
}

void XING_T::wyu(WUXING5 wx)
{
    _wxxqfw = wx - wx5();
}

WUXING5::WXXQF XING_T::wxxqfg() const
{
    return _wxxqfg;
}

WUXING5::WXXQF XING_T::wxxqfw() const
{
    return _wxxqfw;
}

const char *XING_T::clr() const
{
    return _clr;
}




